﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Generating Hibernate Mapping Files and Java Classes</title>
<meta name="GENERATOR" content="WinCHM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

</head>

<body>
<P><FONT face=Verdana color=#0000ff size=5>Generating Hibernate Mapping Files 
and Java Classes</FONT></P>
<P><SPAN 
style="DISPLAY: inline! important; FLOAT: none; WORD-SPACING: 0px; FONT: 11px/18px Verdana, 'Verdana CE', Arial, 'Arial CE', 'Lucida Grande CE', lucida, 'Helvetica CE', sans-serif; TEXT-TRANSFORM: none; COLOR: rgb(51,51,51); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(255,255,255); TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px"> 
               
               
               
                
        </SPAN><SPAN 
style="DISPLAY: inline! important; FLOAT: none; WORD-SPACING: 0px; FONT: 11px/18px Verdana, 'Verdana CE', Arial, 'Arial CE', 'Lucida Grande CE', lucida, 'Helvetica CE', sans-serif; TEXT-TRANSFORM: none; COLOR: rgb(51,51,51); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(255,255,255); TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px">
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellSpacing=0 
cellPadding=2 width="100%" border=1>
  
  <TR>
    <TD><SPAN 
style="DISPLAY: inline! important; FLOAT: none; WORD-SPACING: 0px; FONT: 11px/18px Verdana, 'Verdana CE', Arial, 'Arial CE', 'Lucida Grande CE', lucida, 'Helvetica CE', sans-serif; TEXT-TRANSFORM: none; COLOR: rgb(51,51,51); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(255,255,255); TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px">In this tutorial you use a <STRONG>POJO</STRONG>       (plain old Java 
      object) to <STRONG>represent</STRONG> 
               
               
               
           the data in each of 
the tables in the database that you will use</SPAN></TD>
    <TD>trong thực hành này bạn sử dụng một 
      <STRONG>POJO</STRONG>         để <STRONG>mô 
      tả</STRONG> dữ liệu trong mỗi bảng trong database mà bạn sử dụng</TD></TR>
  <TR>
    <TD><SPAN 
style="DISPLAY: inline! important; FLOAT: none; WORD-SPACING: 0px; FONT: 11px/18px Verdana, 'Verdana CE', Arial, 'Arial CE', 'Lucida Grande CE', lucida, 'Helvetica CE', sans-serif; TEXT-TRANSFORM: none; COLOR: rgb(51,51,51); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(255,255,255); TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px"> 
               
               
               
 The Java class specifies the fields for the columns in the tables and uses simple 
setters and getters to retrieve and write the data</SPAN></TD>
    <TD> class&nbsp;java&nbsp;xác định&nbsp;các field cho các cột 
      trong các bảng và sử dụng setters and getters để lấy&nbsp;và viết dữ 
    liệu</TD></TR>
  <TR>
    <TD><FONT color=#333333 size=2>To 
      map the POJOs to the tables you can use a Hibernate mapping file or use 
      <STRONG>annotations</STRONG>          
             in the class</FONT></TD>
    <TD>để máp POJOs với các bảng bạn có thể sử dụng một 
      Hibernate mapping file hoặc sử dụng <STRONG>lời chú giải</STRONG>            
             trong 
class</TD></TR></TABLE> 
               
               
               
                
        </SPAN></P>
<P>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellSpacing=0 
cellPadding=2 width="100%" border=1>
  
  <TR>
    <TD>&nbsp;<SPAN 
style="DISPLAY: inline! important; FLOAT: none; WORD-SPACING: 0px; FONT: 11px/18px Verdana, 'Verdana CE', Arial, 'Arial CE', 'Lucida Grande CE', lucida, 'Helvetica CE', sans-serif; TEXT-TRANSFORM: none; COLOR: rgb(51,51,51); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(255,255,255); TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px">You can use the Hibernate Mapping Files and POJOs from 
      a Database wizard to create multiple POJOs and mapping files based on 
      database tables</SPAN></TD>
    <TD>bạn có thể sử dụng Hibernate Mapping Files và&nbsp;POJOs từ một 
      Database&nbsp;Wizard&nbsp;để tạo ra nhiều POJOs &nbsp;</TD></TR>
  <TR>
    <TD><FONT size=2><FONT color=#333333><FONT 
      face=Verdana> 
              
         When you use the 
wizard you select all the tables for which you want POJOs and mapping files and 
the IDE then generates the files for you based on the database tables and adds 
the mapping entries to<SPAN class=Apple-converted-space>&nbsp;</SPAN></FONT></FONT></FONT><TT 
style="WORD-SPACING: 0px; FONT: 1.1em/18px 'Courier New', monospace; TEXT-TRANSFORM: none; COLOR: black; TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(255,255,255); TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px">hibernate.cfg.xml</TT></TD>
    <TD>&nbsp;khi bạn sử dụng wizard bạn chọn tất cả các 
      bảng mà bạn muốn POJOs và mapping files và IDE sau đó generates các file 
      cho bạn giựa trên database tables và thêm the mapping entries vào <FONT 
      face="Courier New" size=4>hibernate.cfg.xml</FONT></TD></TR>
  <TR>
    <TD><FONT face=Verdana color=#333333 size=2>When you 
      use the wizard you can choose the files that you want the IDE to generate 
      (only the POJOs, for example) and select code generation options (generate 
      code that uses EJB 3 annotations, for example)</FONT></TD>
    <TD>khi bạn sử dụng wizard bạn có thể chọn những file 
      mà bạn muốn IDE generate ( chỉ POJOs, ví dụ&nbsp;) và chọn code generation 
      options ( &nbsp;)</TD></TR></TABLE><SPAN 
style="DISPLAY: inline! important; FLOAT: none; WORD-SPACING: 0px; FONT: 11px/18px Verdana, 'Verdana CE', Arial, 'Arial CE', 'Lucida Grande CE', lucida, 'Helvetica CE', sans-serif; TEXT-TRANSFORM: none; COLOR: rgb(51,51,51); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(255,255,255); TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px"> 
              
        </SPAN></P>
<P><SPAN 
style="DISPLAY: inline! important; FLOAT: none; WORD-SPACING: 0px; FONT: 11px/18px Verdana, 'Verdana CE', Arial, 'Arial CE', 'Lucida Grande CE', lucida, 'Helvetica CE', sans-serif; TEXT-TRANSFORM: none; COLOR: rgb(51,51,51); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(255,255,255); TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px"> 
                
           
        
</SPAN>&nbsp;</P>
<P><SPAN 
style="DISPLAY: inline! important; FLOAT: none; WORD-SPACING: 0px; FONT: 11px/18px Verdana, 'Verdana CE', Arial, 'Arial CE', 'Lucida Grande CE', lucida, 'Helvetica CE', sans-serif; TEXT-TRANSFORM: none; COLOR: rgb(51,51,51); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(255,255,255); TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px"> 
                
           
        
</SPAN>&nbsp;</P>
<P><SPAN 
style="DISPLAY: inline! important; FLOAT: none; WORD-SPACING: 0px; FONT: 11px/18px Verdana, 'Verdana CE', Arial, 'Arial CE', 'Lucida Grande CE', lucida, 'Helvetica CE', sans-serif; TEXT-TRANSFORM: none; COLOR: rgb(51,51,51); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(255,255,255); TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px"> 
                
           
        
</SPAN>&nbsp;</P></body>
</html>
